<template>
  <div class="app-container">
    <el-card class="box-card">
      <div slot="header" class="clearfix">
        <el-row>
          <el-button type="success" @click="handleCreate">&emsp;新增&emsp;</el-button>
        </el-row>
      </div>
      <div v-loading="listLoading" class="item">
        <el-table ref="dataList" :data="menuList" :tree-props="{children: 'children', hasChildren: 'hasChildren'}"
                  border row-key="id"
                  style="width:100%;margin-bottom: 20px;"
        >
          <el-table-column label="ID" prop="id"></el-table-column>
          <el-table-column label="标题" prop="title"></el-table-column>
          <el-table-column label="类型" prop="type">
            <template slot-scope="scoped">
              <el-tag v-if="scoped.row.type === 1" type="info">非CP</el-tag>
              <el-tag v-if="scoped.row.type === 2" type="warning">CP</el-tag>
            </template>
          </el-table-column>
          <el-table-column label="等阶" prop="class_number">
            <template slot-scope="scoped">
              <p>第{{ scoped.row.class_number }}等阶</p>
            </template>
          </el-table-column>
          <el-table-column label="等阶图标" prop="icon_url">
            <template slot-scope="scope">
              <el-popover max-width="420" placement="right" trigger="hover">
                <img :src="scope.row.icon_url" alt="" style="max-width: 200px;max-height: 200px">
                <img slot="reference" :src="scope.row.icon_url" alt="" style="width: 50px;">
              </el-popover>
            </template>
          </el-table-column>
          <el-table-column label="升级最低等级数" prop="max_grade_number"></el-table-column>
          <el-table-column label="送礼亲密度加成比例" prop="intimacy_addition"></el-table-column>
          <el-table-column label="语聊增长速度" prop="intimacy_increase_rate"></el-table-column>
          <el-table-column label="自定义称谓" prop="diy_nickname">
            <template slot-scope="scoped">
              <el-tag v-if="scoped.row.diy_nickname === 1" type="success">开启</el-tag>
              <el-tag v-if="scoped.row.diy_nickname === 0" type="danger">关闭</el-tag>
            </template>
          </el-table-column>
          <el-table-column label="上线通知" prop="online_notice">
            <template slot-scope="scoped">
              <el-tag v-if="scoped.row.online_notice === 1" type="success">开启</el-tag>
              <el-tag v-if="scoped.row.online_notice === 0" type="danger">关闭</el-tag>
            </template>
          </el-table-column>
          <el-table-column label="入场通知" prop="joinroom_notice">
            <template slot-scope="scoped">
              <el-tag v-if="scoped.row.joinroom_notice === 1" type="success">开启</el-tag>
              <el-tag v-if="scoped.row.joinroom_notice === 0" type="danger">关闭</el-tag>
            </template>
          </el-table-column>
          <el-table-column label="每日亲密度上限" prop="day_intimacy_max"></el-table-column>
          <el-table-column label="每日免费上限" prop="day_intimacy_free_max"></el-table-column>
          <el-table-column label="状态" prop="status">
            <template slot-scope="scoped">
              <el-tag v-if="scoped.row.status === 1" type="success">开启</el-tag>
              <el-tag v-if="scoped.row.status === 0" type="danger">关闭</el-tag>
            </template>
          </el-table-column>

          <el-table-column label="操作" width="180px">
            <template slot-scope="scope">
              <el-button icon="el-icon-edit" plain size="mini" type="primary" @click="handleUpdate(scope.row)">编辑
              </el-button>
              <el-button icon="el-icon-delete" plain size="mini" type="danger" @click="handleDelete(scope.row)">删除
              </el-button>
            </template>
          </el-table-column>
        </el-table>
        <!-- 分页 -->
        <cus-pagination
          :limit.sync="listQuery.per_page"
          :page.sync="listQuery.page"
          :total="total"
          @pagination="getList"
        />
      </div>
    </el-card>


    <!-- 删除弹框 -->
    <el-dialog
      :visible.sync="deleteDialogVisible"
      title="确定删除吗?"
      width="435px"
    >
      <span style=""><em style="font-style:normal;color:red">删除后不可恢复</em>，你还要继续吗？</span>
      <span slot="footer" class="dialog-footer">
                <el-button @click="deleteDialogVisible = false">取 消</el-button>
                <el-button type="primary" @click="confirmDelete">确 定</el-button>
            </span>
    </el-dialog>

    <el-dialog :title="titleMap[dialogStatus]" :visible.sync="dialogFormVisible">
      <el-form ref="editRulesForm" :model="editRulesForm" :rules="editRulesFormRules" class="demo-ruleForm"
               label-width="120px"
      >
        <el-form-item label="是否情侣" prop="type">
          <el-radio v-model="editRulesForm.type" :label="2">CP</el-radio>
          <el-radio v-model="editRulesForm.type" :label="1">非CP</el-radio>
        </el-form-item>
        <el-form-item label="标题">
          <el-input v-model="editRulesForm.title" placeholder="请输入内容"></el-input>
        </el-form-item>
        <el-form-item label="等阶" prop="class_number">
          <el-select v-model="editRulesForm.class_number" filterable placeholder="请选择">
            <el-option
              v-for="item in classOptions"
              :key="item.id"
              :label="item.label"
              :value="item.id"
            >
            </el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="等阶图标" prop="icon_url">
          <el-upload
            ref="upload"
            :auto-upload="true"
            :before-upload="beforeAvatarUpload"
            :file-list="specialFlagBigList"

            :on-change="handleChangePic"
            :on-remove="handleSpecialFlagBigRemove"
            :on-success="handleSpecialFlagBigSuccess"
            action=""
            class="upload-demo"
            list-type="picture"
          >
            <el-button slot="trigger" size="small" type="primary">上传等阶图标</el-button>
          </el-upload>
        </el-form-item>
        <el-form-item label="最高等级数" prop="max_grade_number">
          <el-input v-model="editRulesForm.max_grade_number" placeholder="请输入内容" type="number"></el-input>
        </el-form-item>
        <el-form-item label="亲密度加成比例" prop="intimacy_addition">
          <el-input v-model="editRulesForm.intimacy_addition" placeholder="请输入内容" type="number"></el-input>
        </el-form-item>
        <el-form-item label="语聊增长速度" prop="intimacy_increase_rate">
          <el-input v-model="editRulesForm.intimacy_increase_rate" placeholder="请输入内容" type="number"></el-input>
        </el-form-item>
        <el-form-item label="每日亲密度上限" prop="day_intimacy_max">
          <el-input v-model="editRulesForm.day_intimacy_max" placeholder="请输入内容" type="number"></el-input>
        </el-form-item>
        <el-form-item label="每日免费上限" prop="day_intimacy_free_max">
          <el-input v-model="editRulesForm.day_intimacy_free_max" placeholder="请输入内容" type="number"></el-input>
        </el-form-item>
        <el-form-item label="自定义称谓" prop="diy_nickname">
          <el-radio v-model="editRulesForm.diy_nickname" :label="1">是</el-radio>
          <el-radio v-model="editRulesForm.diy_nickname" :label="0">否</el-radio>
        </el-form-item>
        <el-form-item label="上线通知" prop="online_notice">
          <el-radio v-model="editRulesForm.online_notice" :label="1">是</el-radio>
          <el-radio v-model="editRulesForm.online_notice" :label="0">否</el-radio>
        </el-form-item>
        <el-form-item label="入场通知" prop="joinroom_notice">
          <el-radio v-model="editRulesForm.joinroom_notice" :label="1">是</el-radio>
          <el-radio v-model="editRulesForm.joinroom_notice" :label="0">否</el-radio>
        </el-form-item>
        <el-form-item label="道具ID" prop="product_id">
          <el-select v-model="editRulesForm.product_id" filterable placeholder="请选择" style="margin-right:10px">
            <el-option
              v-for="item in prop_list"
              :key="item.id"
              :label="item.title"
              :value="item.id"
            >
            </el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="头像框ID_1" prop="product_id_1">
          <el-select v-model="editRulesForm.product_id_1" filterable placeholder="请选择" style="margin-right:10px">
            <el-option
              v-for="item in head_frame_list"
              :key="item.id"
              :label="item.title"
              :value="item.id"
            >
            </el-option>
          </el-select>
          <el-input v-if="editRulesForm.type === 1" v-model="editRulesForm.days_1" placeholder="请输入天数"
                    style="width:150px"
                    type="number"
          >
            <i slot="suffix">天</i>
          </el-input>
        </el-form-item>
        <el-form-item label="头像框ID_2" prop="product_id_2">
          <el-select v-model="editRulesForm.product_id_2" filterable placeholder="请选择" style="margin-right:10px">
            <el-option
              v-for="item in head_frame_list"
              :key="item.id"
              :label="item.title"
              :value="item.id"
            >
            </el-option>
          </el-select>
          <el-input v-if="editRulesForm.type === 1" v-model="editRulesForm.days_2" placeholder="请输入天数"
                    style="width:150px"
                    type="number"
          >
            <i slot="suffix">天</i>
          </el-input>
        </el-form-item>
        <el-form-item label="入场特效ID_1" prop="product_id_3">
          <el-select v-model="editRulesForm.product_id_3" filterable placeholder="请选择" style="margin-right:10px">
            <el-option
              v-for="item in special_effects_list"
              :key="item.id"
              :label="item.title"
              :value="item.id"
            >
            </el-option>
          </el-select>
          <el-input v-if="editRulesForm.type === 1" v-model="editRulesForm.days_3" placeholder="请输入天数"
                    style="width:150px"
                    type="number"
          >
            <i slot="suffix">天</i>
          </el-input>
        </el-form-item>
        <el-form-item label="入场特效ID_2" prop="product_id_4">
          <el-select v-model="editRulesForm.product_id_4" filterable placeholder="请选择" style="margin-right:10px">
            <el-option
              v-for="item in special_effects_list"
              :key="item.id"
              :label="item.title"
              :value="item.id"
            >
            </el-option>
          </el-select>
          <el-input v-if="editRulesForm.type === 1" v-model="editRulesForm.days_4" placeholder="请输入天数"
                    style="width:150px"
                    type="number"
          >
            <i slot="suffix">天</i>
          </el-input>
        </el-form-item>
        <el-form-item label="状态" prop="status">
          <el-radio v-model="editRulesForm.status" :label="1">展示</el-radio>
          <el-radio v-model="editRulesForm.status" :label="0">不展示</el-radio>
        </el-form-item>
        <el-form-item>
          <el-button @click="dialogFormVisible = false">返回</el-button>
          <el-button type="primary" @click="submitForm('editRulesForm')">提交</el-button>
        </el-form-item>
      </el-form>
    </el-dialog>
  </div>
</template>

<script>
import {
  listData,
  addData,
  detailData,
  deleteData
} from '@/api/contacts/contactsConfig'

import {
  getToken
} from '@/utils/auth'
import { IMG_UPLOAD_URL } from '../../data/basic_data'

export default {
  data() {
    return {

      specialFlagBigList: [],

      editRulesFormRules: {
        // id:[{required:true,message:'请输入数量',trigger:'blur'}],
        // title:undefined,
        icon_url: [{ required: true, message: '请选择', trigger: 'change' }],
        class_number: [{ required: true, message: '请选择', trigger: 'blur' }],
        max_grade_number: [{ required: true, message: '请输入', trigger: 'blur' }],
        day_intimacy_max: [{ required: true, message: '请输入', trigger: 'blur' }],
        day_intimacy_free_max: [{ required: true, message: '请输入', trigger: 'blur' }],
        type: [{ required: true, message: '请选择', trigger: 'change' }],
        intimacy_addition: [{ required: true, message: '请输入', trigger: 'blur' }],
        intimacy_increase_rate: [{ required: true, message: '请输入', trigger: 'blur' }],
        diy_nickname: [{ required: true, message: '请选择', trigger: 'change' }],
        online_notice: [{ required: true, message: '请选择', trigger: 'change' }],
        joinroom_notice: [{ required: true, message: '请选择', trigger: 'change' }],
        status: [{ required: true, message: '请选择', trigger: 'bluchanger' }]
      },
      deleteDialogVisible: false,
      dialogFormVisible: false,
      classOptions: [
        { label: '第零阶', id: 0 },
        { label: '第一阶', id: 1 },
        { label: '第二阶', id: 2 },
        { label: '第三阶', id: 3 },
        { label: '第四阶', id: 4 },
        { label: '第五阶', id: 5 }
      ],
      editRulesForm: {
        id: undefined,
        title: undefined,
        icon_url: undefined,
        class_number: undefined,
        max_grade_number: undefined,
        day_intimacy_max: undefined,
        day_intimacy_free_max: undefined,
        type: 2,
        product_id: undefined,
        intimacy_addition: undefined,
        intimacy_increase_rate: undefined,
        diy_nickname: 0,
        online_notice: 0,
        joinroom_notice: 0,
        product_id_1: undefined,
        product_id_2: undefined,
        product_id_3: undefined,
        product_id_4: undefined,
        days_1: undefined,
        days_2: undefined,
        days_3: undefined,
        days_4: undefined,
        status: 1
      },
      dialogStatus: '',
      titleMap: {
        update: '编辑',
        create: '增加'
      },

      head_frame_list: [],
      special_effects_list: [],
      prop_list: [],

      menuList: [],
      listQuery: {
        page: 1,
        per_page: 10

      },
      total: 0
    }
  },
  created() {
    this.getList()
    this.detailList()
  },
  methods: {
    beforeAvatarUpload(file) {
      const isJPG = file.type === 'image/jpeg' || file.type === 'image/png' || file.type === 'image/webp' || file.type === 'image/gif'
      const isLt2M = file.size / 1024 / 1024 < 2

      if (!isJPG) {
        this.$message.error('请上传图片!')
      }
      if (!isLt2M) {
        this.$message.error('上传图片大小不能超过 2MB!')
      }
      return isJPG && isLt2M
    },
    handleChangePic(fileList) {
      if (fileList.length > 1) {
        fileList.splice(0, 1)
      }
    },
    handleSpecialFlagBigSuccess(res) {
      this.editRulesForm.icon_url = res.data.url
      this.specialFlagBigList = [{ url: res.data.url }]
    },
    handleSpecialFlagBigRemove(res) {
      this.editRulesForm.icon_url = undefined
      this.specialFlagBigList = []
    },
    getList() {
      this.listLoading = true
      let urlData = '?'
      if (this.listQuery.page) {
        urlData = urlData + `page=${this.listQuery.page}&`
      }
      if (this.listQuery.per_page) {
        urlData = urlData + `per_page=${this.listQuery.per_page}`
      }
      listData(urlData).then((response) => {
        this.menuList = response.data.list
        this.total = response.data.total
        this.listLoading = false
      })
    },
    detailList() {
      detailData().then(response => {
        this.prop_list = response.data.prop_list
        this.special_effects_list = response.data.special_effects_list
        this.head_frame_list = response.data.head_frame_list

      })
    },
    // 点击新增
    handleCreate() {
      // this.detailList()
      this.resetForm('editRulesForm')
      this.dialogStatus = 'create'
      this.dialogFormVisible = true
    },
    // 点击编辑
    handleUpdate(row) {
      this.editRulesForm = {
        id: undefined,
        title: undefined,
        icon_url: undefined,
        class_number: undefined,
        max_grade_number: undefined,
        day_intimacy_max: undefined,
        day_intimacy_free_max: undefined,
        type: 2,
        product_id: undefined,
        intimacy_addition: undefined,
        intimacy_increase_rate: undefined,
        diy_nickname: 0,
        online_notice: 0,
        joinroom_notice: 0,
        product_id_1: undefined,
        product_id_2: undefined,
        product_id_3: undefined,
        product_id_4: undefined,
        days_1: undefined,
        days_2: undefined,
        days_3: undefined,
        days_4: undefined,
        status: 1
      }
      this.specialFlagBigList = []

      this.editRulesForm.id = row.id
      this.editRulesForm.title = row.title
      this.editRulesForm.type = row.type
      if (row.icon_url && row.icon_url !== 'undefined') {
        this.editRulesForm.icon_url = row.icon_url
        this.specialFlagBigList = [{ url: row.icon_url }]
      }
      this.editRulesForm.class_number = row.class_number
      this.editRulesForm.max_grade_number = row.max_grade_number
      this.editRulesForm.day_intimacy_max = row.day_intimacy_max
      this.editRulesForm.day_intimacy_free_max = row.day_intimacy_free_max
      if (row.product_id !== 0) {
        this.editRulesForm.product_id = row.product_id
      }
      this.editRulesForm.intimacy_addition = row.intimacy_addition
      this.editRulesForm.intimacy_increase_rate = row.intimacy_increase_rate
      this.editRulesForm.diy_nickname = row.diy_nickname
      this.editRulesForm.online_notice = row.online_notice
      this.editRulesForm.joinroom_notice = row.joinroom_notice

      // row.mall_config.
      if (row.mall_config) {
        for (let key in row.mall_config) {
          if (key === 1) {

            if (row.type === 1) {
              row.mall_config[key].forEach((item, index) => {
                this.editRulesForm[`product_id_${index + 1}`] = item.product_id
                this.editRulesForm[`days_${index + 1}`] = item.days
              })
            } else {
              row.mall_config[key].forEach((item, index) => {
                this.editRulesForm[`product_id_${index + 1}`] = item.product_id
              })
            }
          } else if (key === 4) {
            if (row.type === 1) {
              row.mall_config[key].forEach((item, index) => {
                this.editRulesForm[`product_id_${index + 3}`] = item.product_id
                this.editRulesForm[`days_${index + 3}`] = item.days
              })
            } else {
              row.mall_config[key].forEach((item, index) => {
                this.editRulesForm[`product_id_${index + 3}`] = item.product_id
              })
            }
          }
        }
      }

      this.editRulesForm.status = row.status

      this.dialogStatus = 'update'
      this.dialogFormVisible = true
    },
    // 重置表单内容
    resetForm(formName) {
      this.$nextTick(() => {
        // this.$refs[formName].resetFields();
        if (this.$refs[formName] !== undefined) {
          this.$refs[formName].resetFields()
        }
        this.editRulesForm = {
          id: undefined,
          title: undefined,
          icon_url: undefined,
          class_number: undefined,
          max_grade_number: undefined,
          day_intimacy_max: undefined,
          day_intimacy_free_max: undefined,
          type: 2,
          product_id: undefined,
          intimacy_addition: undefined,
          intimacy_increase_rate: undefined,
          diy_nickname: 0,
          online_notice: 0,
          joinroom_notice: 0,
          product_id_1: undefined,
          product_id_2: undefined,
          product_id_3: undefined,
          product_id_4: undefined,
          days_1: undefined,
          days_2: undefined,
          days_3: undefined,
          days_4: undefined,
          status: 1
        }
        this.specialFlagBigList = []
      })
    },
    handleAvatarSuccess(res, file) {
    },
    submitForm(formName) {
      this.$refs[formName].validate((valid) => {
        if (valid) {
          let mall_config = {}
          if (this.editRulesForm.type === 2) {
            let arr1 = []
            if (this.editRulesForm.product_id_1) {
              arr1.push({ product_id: this.editRulesForm.product_id_1 })
            }
            if (this.editRulesForm.product_id_2) {
              arr1.push({ product_id: this.editRulesForm.product_id_2 })
            }
            let arr2 = []
            if (this.editRulesForm.product_id_3) {
              arr2.push({ product_id: this.editRulesForm.product_id_3 })
            }
            if (this.editRulesForm.product_id_4) {
              arr2.push({ product_id: this.editRulesForm.product_id_4 })
            }

            if (arr1.length > 0) {
              mall_config['1'] = JSON.stringify(arr1)
            }
            if (arr2.length > 0) {
              mall_config['4'] = JSON.stringify(arr2)
            }
          } else if (this.editRulesForm.type === 1) {
            let arr1 = []
            if (this.editRulesForm.product_id_1) {
              arr1.push({ product_id: this.editRulesForm.product_id_1, days: this.editRulesForm.days_1 })
            }
            if (this.editRulesForm.product_id_2) {
              arr1.push({ product_id: this.editRulesForm.product_id_2, days: this.editRulesForm.days_2 })
            }
            let arr2 = []
            if (this.editRulesForm.product_id_3) {
              arr2.push({ product_id: this.editRulesForm.product_id_3, days: this.editRulesForm.days_3 })
            }
            if (this.editRulesForm.product_id_4) {
              arr2.push({ product_id: this.editRulesForm.product_id_4, days: this.editRulesForm.days_4 })
            }

            if (arr1.length > 0) {
              mall_config['1'] = arr1
            }
            if (arr2.length > 0) {
              mall_config['4'] = arr2
            }
          }

          if (this.dialogStatus === 'create') {
            let formData = new FormData()
            if (this.editRulesForm.title) {
              formData.append('title', this.editRulesForm.title)
            }
            formData.append('icon_url', this.editRulesForm.icon_url)
            formData.append('class_number', this.editRulesForm.class_number)
            formData.append('max_grade_number', this.editRulesForm.max_grade_number)
            formData.append('day_intimacy_max', this.editRulesForm.day_intimacy_max)
            formData.append('day_intimacy_free_max', this.editRulesForm.day_intimacy_free_max)
            formData.append('type', this.editRulesForm.type)
            if (this.editRulesForm.product_id) {
              formData.append('product_id', this.editRulesForm.product_id)
            }
            formData.append('intimacy_addition', this.editRulesForm.intimacy_addition)
            formData.append('intimacy_increase_rate', this.editRulesForm.intimacy_increase_rate)
            formData.append('diy_nickname', this.editRulesForm.diy_nickname)
            formData.append('online_notice', this.editRulesForm.online_notice)
            formData.append('joinroom_notice', this.editRulesForm.joinroom_notice)
            formData.append('status', this.editRulesForm.status)
            formData.append('mall_config', JSON.stringify(mall_config))

            addData(formData).then(response => {
              if (response.code === 200) {
                this.getList()
                this.dialogFormVisible = false
                this.$notify({
                  type: 'success',
                  message: '操作成功',
                  position: 'bottom-right',
                  showClose: false,
                  duration: 3000
                })
              } else {
                this.$message({
                  message: response.message,
                  type: 'error'
                })
              }
            })
          } else {
            let formData = new FormData()
            formData.append('id', this.editRulesForm.id)
            if (this.editRulesForm.title) {
              formData.append('title', this.editRulesForm.title)
            }
            formData.append('icon_url', this.editRulesForm.icon_url)
            formData.append('class_number', this.editRulesForm.class_number)
            formData.append('max_grade_number', this.editRulesForm.max_grade_number)
            formData.append('day_intimacy_max', this.editRulesForm.day_intimacy_max)
            formData.append('day_intimacy_free_max', this.editRulesForm.day_intimacy_free_max)
            formData.append('type', this.editRulesForm.type)
            if (this.editRulesForm.product_id) {
              formData.append('product_id', this.editRulesForm.product_id)
            }
            formData.append('intimacy_addition', this.editRulesForm.intimacy_addition)
            formData.append('intimacy_increase_rate', this.editRulesForm.intimacy_increase_rate)
            formData.append('diy_nickname', this.editRulesForm.diy_nickname)
            formData.append('online_notice', this.editRulesForm.online_notice)
            formData.append('joinroom_notice', this.editRulesForm.joinroom_notice)
            formData.append('status', this.editRulesForm.status)
            formData.append('mall_config', JSON.stringify(mall_config))
            addData(formData).then(response => {
              if (response.code === 200) {
                this.getList()
                this.dialogFormVisible = false
                this.$notify({
                  type: 'success',
                  message: '操作成功',
                  position: 'bottom-right',
                  showClose: false,
                  duration: 3000
                })
              } else {
                this.$message({
                  message: response.message,
                  type: 'error'
                })
              }
            })
          }
        } else {
          // 'error submit!!');
          return false
        }
      })
    },
    // 点击单个删除
    handleDelete(row) {
      this.dataIds = { ids: `${row.id}` }
      this.deleteDialogVisible = true
    },
    // 确定删除
    confirmDelete() {
      // this.dataIds)
      deleteData(this.dataIds).then((response) => {
        if (response.code === 200) {
          this.getList()
          this.deleteDialogVisible = false
          this.$notify({
            type: 'success',
            message: '操作成功',
            position: 'bottom-right',
            showClose: false,
            duration: 3000
          })
        } else {
          this.$message({
            message: response.message,
            type: 'error'
          })
        }
      })
    }
  }
}
</script>

<style>
[v-cloak] {
  display : none;
}

.clearfix:before,
.clearfix:after {
  display : table;
  content : "";
}

.clearfix:after {
  clear : both
}

.box-card {
  width : 100%;
}

.demo-form-inline {
  float : right;
}

/deep/ .el-card__header {
  padding-bottom : 0;
}

.el-upload-list {
  max-height : 104px !important;
  overflow   : hidden !important;
}

.el-upload-list__item {
  transition : none !important;

}
</style>
